package com.kingyun.gpsinspection.purificationservice.dao.mapper.iam.accessory;


import com.kingyun.gpsinspection.purificationservice.facade.model.iam.accessory.IamOrganizationVo;
import com.kingyun.gpsinspection.purificationservice.facade.model.jsm.Organization;
import com.kingyun.gpsinspection.purificationservice.facade.model.som.User;

import java.util.List;

public interface OrganizationMapper {

    /**
     * 根据条件查询集合
     *
     * @param param
     * @return
     */
    List<Organization> selectOrgTree(Organization param);

    /**
     * 向上查找作业区id
     *
     * @param orgId
     * @return
     */
    IamOrganizationVo getUpZyqByOrgId(String orgId);

    /**
     * 向下查找作业区id
     *
     * @param orgId
     * @return
     */
    List<IamOrganizationVo> getDownZyqByOrgId(String orgId);

    /**
     * 根据orgId查询查询以此为父节点的组织
     *
     * @param orgId 组织id
     * @return
     */
    List<IamOrganizationVo> getNextOrganizationListByOrgId(String orgId);

    List<User> queryUsersByOrgId(String orgId);
}